home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8211 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  753 b 

  1. Path: pita.cs.huji.ac.il!musya
  2. Newsgroups: comp.lang.c++
  3. Subject: function behaving like constructors
  4. Message-ID: <4g01in$49o@shum.cc.huji.ac.il>
  5. From: musya@pita.cs.huji.ac.il (Michael Hoichman)
  6. Date: 15 Feb 1996 19:29:27 GMT
  7. Distribution: world
  8. Organization: Hebrew University of Jerusalem, Israel
  9. NNTP-Posting-Host: cs4.cs.huji.ac.il
  10. Dnas-Posting-Host: pita.cs.huji.ac.il
  11.  
  12.     I have a tree of classes which write (every one) their data to a file.
  13. I would like every class to write its own data and in addition the data of
  14. all its ancestors. Actually the behavior I'm looking for is the one of
  15. constructors. How may I do that in using an elegant way?
  16.  
  17.     Please, e-mail: musya@cs.huji.ac.il
  18.  
  19. P.S.: I am using Watcom C++ 10.5 compiler (if it is relevant)
  20.  
  21.